﻿<template>
	<div style="padding:0px;">
		<el-form :model="dialogForm" :rules="rules" ref="dialogForm" :label-width="formLabelWidth">
		<el-card class="box-card">
		  
		  <div  class="text item">
			
			  	<div slot="header" class="clearfix">
		          <span style="line-height: 30px;">经销商信息</span>
		        </div>
			    <el-form-item label="经销商名称" >
			      <el-input v-model="dialogForm.qckx" auto-complete="off"  ></el-input>
			    </el-form-item>
			    <el-form-item label="使用者姓名" >
			      <el-input v-model="dialogForm.qckx" auto-complete="off"  ></el-input>
			    </el-form-item>
			    <el-form-item label="手机号码" >
			      <el-input v-model="dialogForm.qcys" auto-complete="off"  ></el-input>
			    </el-form-item>
			    <el-form-item label="统一社会信用代码" >
			      <el-input v-model="dialogForm.qcys" auto-complete="off" :disabled="!basicDialogFormVisible.isAdd" ></el-input>
			    </el-form-item>
			    <el-form-item label="当前利率" >
			      <el-input v-model="dialogForm.qckx" auto-complete="off" ></el-input>
			    </el-form-item>
			    <el-form-item label="登陆密码" >
			      <input type="text" style="position:absolute;right:10000px;">
			      <el-input v-model="dialogForm.qcsl" type="password" auto-complete="off" ></el-input>
			    </el-form-item>
			</div>
		</el-card>
		<div style="text-align:right;margin-top:15px;">
			 <el-button @click="returnBack">返 回</el-button>
			 <el-button  type="primary" @click="submitConfirmForm('dialogForm')">提 交</el-button>
		</div>
		</el-form>
	</div>
</template>
<script>
    import router from '@/router';
	export default{
		created(){
   
        },
		props:['basicDialogFormVisible','tableData'],
		data(){
			return{
				formLabelWidth:'170px',
				//弹窗或者查看页面信息
		        dialogForm:{
		          qcsl:"",
		          qckx:"",
		          qcys:"",
		          zdj_pz:"",
		          qczjg:"",
		          dzje:"",
		          resource:""
		        },
		        rules: {
		          name: [{ required: true, message: '请输入经销商名称', trigger: 'blur' }],
		          qckx:[{ required: true, message: 'qckx', trigger: 'blur' }]
		        },
			}
		},methods:{
			returnBack(){
				this.basicDialogFormVisible.dialogVisible=false;
			},
			submitConfirmForm(formName){
				//this.isAdd=false;
                this.$refs[formName].validate((valid) => {
		          if (valid) {
		          	this.basicDialogFormVisible.dialogVisible=false;
		            alert('submit!');
		          } else {
		            console.log('error submit!!');
		            return false;
		          }
		        });
			}
		}
	};
	
</script>